<?php


namespace App\Tools;


class DxbTools
{
            public function update($param){
                $smsapi = config('dxb.smsapi');
                $user = config('dxb.user'); //短信平台帐号
                $pass = md5(config('dxb.pass')); //短信平台密码
                $content=config('dxb.contents');//要发送的短信内容
                $phone = $param;//要发送短信的手机号码
                $sendurl = $smsapi."sms?u=".$user."&p=".$pass."&m=".$phone."&c=".urlencode($content);
                $result =file_get_contents($sendurl) ;

                if ($result=="0"){
                    return JsonTools::JsonSuccess($param,200,'发送成功');
                }
            }
}
